//
//  YLGoodsCollectionViewCell.m
//  YLFinanceService
//
//  Created by she1323 on 2017/8/23.
//  Copyright © 2017年 she1323. All rights reserved.
//

#import "YLGoodsCollectionViewCell.h"
#import "YLGoodsModel.h"
@interface YLGoodsCollectionViewCell ()
@property (weak, nonatomic) IBOutlet UIImageView *icon;
@property (weak, nonatomic) IBOutlet UILabel *name;

@end

@implementation YLGoodsCollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setModel:(YLGoodsModel *)model
{
    _model = model;
   //self.backgroundColor = [UIColor redColor];
    _icon.image = [UIImage imageNamed:model.imageName];
    _name.text = model.name;
}

+ (NSString *)cellID
{
    return @"YLGoodsCollectionViewCell";
}

@end
